function customerManagerController() {
	this.loadCustomer = function() {
		$.get("customerManager/getCustomerArr", function(data) {
			if (data.success) {
				var html = template('customer', data);
				$('#customerPart').append(html)
			}
		});
	};
	this.loadGroup = function() {
		$.get("customerManager/getCustomerGroup", function(data) {
			var html = template('groups', data);
			$('#groupPart').append(html)
		});
	}

}

var customerManagerController = new customerManagerController();
customerManagerController.loadCustomer();
customerManagerController.loadGroup();
